import type { GreasyForkElements } from '../../../../../../../../../types/constants/personalization/greasy_fork'
import {
  PAGE_ELEMENTS,
  SUPPORTED_PLATFORMS,
} from '../../../../../../../../../types/constants'

// 测试链接：https://greasyfork.org/zh-CN/scripts/534876/admin
export class ScriptAdminPage {
  elements: GreasyForkElements = PAGE_ELEMENTS[SUPPORTED_PLATFORMS.GREASY_FORK]
  private static instance: ScriptAdminPage

  /**
   * 获取单例实例
   */
  public static getInstance(): ScriptAdminPage {
    if (!ScriptAdminPage.instance) {
      ScriptAdminPage.instance = new ScriptAdminPage()
    }
    return ScriptAdminPage.instance
  }

  init(): void {
  }

  getMainStyles(): string {
    return `
.width-constraint {
  #script-content {
    .multiform-page {
      padding-bottom: 0 !important;
      border: none !important;
    }
  }
}
`
  }
}
